package top.hmtools.beans;

/**
 * mybatis mapper xml内容片断模板描述信息
 * @author HyboJ
 *
 */
public class MapperXmlSqlPartTempletBean {

	/**
	 * 主键id
	 */
	private String id;
	
	/**
	 * 片断名称
	 */
	private String name;
	
	/**
	 * 所属分组id
	 */
	private String group_id;
	
	/**
	 * 所属分组名称
	 */
	private String groupName;
	
	/**
	 * 内容
	 */
	private String content;
	
	/**
	 * 描述信息
	 */
	private String comment;
	
	/**
	 * 生成dao层接口的方法名称，即mapper xml片断中“id”对应的值
	 */
	private String method_name;
	
	/**
	 * 所属数据库的类型
	 * <br>1：MySQL，2：Oracle，3：SqlServer，4：SQLite
	 * <br>使用top.hmtools.enums.EDBType
	 */
	private int db_type;
	
	/**
	 * 用于模板合并数据模型内容时的占位符名称
	 */
	private String factor_name;

	/**
	 * @return the groupName
	 */
	public String getGroupName() {
	    return groupName;
	}

	/**
	 * @param groupName the groupName to set
	 */
	public void setGroupName(String groupName) {
	    this.groupName = groupName;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the group_id
	 */
	public String getGroup_id() {
		return group_id;
	}

	/**
	 * @param group_id the group_id to set
	 */
	public void setGroup_id(String group_id) {
		this.group_id = group_id;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the method_name
	 */
	public String getMethod_name() {
		return method_name;
	}

	/**
	 * @param method_name the method_name to set
	 */
	public void setMethod_name(String method_name) {
		this.method_name = method_name;
	}

	/**
	 * @return the db_type
	 */
	public int getDb_type() {
		return db_type;
	}

	/**
	 * @param db_type the db_type to set
	 */
	public void setDb_type(int db_type) {
		this.db_type = db_type;
	}

	/**
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * @param comment the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * @return the factor_name
	 */
	public String getFactor_name() {
		return factor_name;
	}

	/**
	 * @param factor_name the factor_name to set
	 */
	public void setFactor_name(String factor_name) {
		this.factor_name = factor_name;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "MapperXmlSqlPartTempletBean [id=" + id + ", name=" + name + ", group_id=" + group_id + ", groupName="
				+ groupName + ", content=" + content + ", comment=" + comment + ", method_name=" + method_name
				+ ", db_type=" + db_type + ", factor_name=" + factor_name + "]";
	}
	
	
}
